package com.qf.cx.simplenms.webservice.model;

import java.util.Collections;
import java.util.List;

import com.google.gson.Gson;

public class SubscirberToJson {
	public static void main(String[] args) {
		Gson gson = new Gson();

		Subscriber t = new Subscriber();
		t.setUrl("file://localhost/d:/123");
		List<String> topicNames = Collections.singletonList("topic");
		t.setTopicNames(topicNames);
		System.out.println(gson.toJson(Collections.singletonList(t)));

	}
}
